<%@ include file="/inc/top.jsp" %>
<%
  String        sCorbaServerConnection = request.getSession().getServletContext().getInitParameter("DominoDIIOPConnection");
  String        sCaptiveName           = uc.getCaptiveName();
  String        sToken                 = uc.getToken();
  String        sDominoServer          = request.getSession().getServletContext().getInitParameter("DOMINO_SERVER");
  java.util.Set set                    = com.novix.utility.web.DominoLookup.getRegionSearchFields("designElementName", 
          "region-search-fields", sCorbaServerConnection, sToken, sCaptiveName, sDominoServer, "Members\\MConfig.nsf");
%>

  <html:form action="/domino/searchOrganizations">
  <div id="progress" style="display: none;">
  	
  </div>
  <div id="screen" style="display: block;">
    <div align="center">
      <h3>
        <b><u>
          Advanced Search
        </u></b>
      </h3>
    </div>
    <br>
    <table border="0" cellpadding="0" cellspacing="0">
      <tbody>
        <tr valign="top">
          <td width="139"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
          <td width="480"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
        </tr>
        <tr valign="top">
          <td width="139"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
          <td width="480">
            <ul>
              <b>Specify any or all of the search terms below, then click
              "search."</b>
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
          <td width="480"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
        </tr>
        <tr valign="top">
          <td width="139">
            <div align="right">
              <b>Search Keywords:</b>
            </div>
          </td>
          <td width="480">
            <ul>
              <input name="searchkeywords" value="" size="40">
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
          <td width="480">
            <ul>
              <input name="searchtype" value="1" checked="checked" type="radio">
              any of the keywords
              <input name="searchtype" value="2" type="radio">
              all of the keywords
              <%--	<input name="searchtype" value="3" type="radio">
					exact phrase
				--%>
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139">
            <br>
          </td>
          <td width="480"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
        </tr>
        <tr valign="top">
          <td width="139">
            <div align="right">
              <b>Company Name:</b>
            </div>
          </td>
          <td width="480">
            <ul>
              <input name="companyname" value="" size="40">
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139">
            <div align="right">
              <b>City:</b>
            </div>
          </td>
          <td width="480">
            <ul>
              <input name="city" value="">
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139">
            <div align="right">
              <b>State:</b>
            </div>
          </td>
          <td width="480">
            <ul>
              <input name="state" value="">
            </ul>
          </td>
        </tr>
        <tr valign="top">
          <td width="139">
            <div align="right">
              <b>NAICS:</b>
            </div>
          </td>
          <td width="480">
            <ul>
              <input name="NAICS" value="">
            </ul>
          </td>
        </tr>
<%
        if (!set.isEmpty()) {
%>
          <tr valign="top">
            <td width="139">
              <div align="right">
                <b>Region:</b>
              </div>
            </td>
            <td width="480">
              <ul>
<%
                for (java.util.Iterator iter = set.iterator(); iter.hasNext(); ) {
                  String element = (String)iter.next();

                  out.print("<input name='region' size='40' value='");
                  out.print(element);
                  out.print("' type='checkbox'>");
                  out.print(element);
                  out.print("<br>");
                }
%>
              </ul>
            </td>
          </tr>
<%
        }
%>
        <tr valign="top">
          <td width="139">
            <br>
          </td>
          <td width="480"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
        </tr>
        <tr valign="top">
          <td width="139"><img src="/icons/ecblank.gif" alt="" border="0" height="1" width="1"></td>
          <td width="480">
            <ul>
              <html:submit value="Search" onclick="progress(this)" />
              <html:cancel value="Cancel" />
            </ul>
          </td>
        </tr>
      </tbody>
    </table>
  </div>    
  </html:form>
  <%@ include file="/inc/footer.jsp" %>
